Skip to content

[#763] allow remote users to be fully deleted, including home collections#794

Open
d-w-moore wants to merge 2 commits intoirods:mainfrom
d-w-moore:763.m
Open

[#763] allow remote users to be fully deleted, including home collections#794
d-w-moore wants to merge 2 commits intoirods:mainfrom
d-w-moore:763.m

Conversation

@d-w-moore
Copy link
Collaborator

No description provided.

@d-w-moore d-w-moore marked this pull request as draft February 6, 2026 03:59
@d-w-moore d-w-moore self-assigned this Feb 6, 2026
When calling to GEN_ADMIN to remove a remote user with separate user and
zone parameters, the server will not remove the /tempZone/**/user#hello
collections.  So, we now force PRC to use an integrated user#zone format.
@d-w-moore d-w-moore marked this pull request as ready for review February 17, 2026 16:34
Comment on lines +49 to +51
def _parse_user_and_zone(user_param, zone_param):
"""Parse out the uesr name ane zone name from USER and ZONE string parameters.
If the USER string contains # and a non-null-length ZONE spec, ensure that
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The mismatch between the parameter names and the use of USER and ZONE in the comment might confuse people.

Consider replacing USER/ZONE with user_param/zone_param respectively.

if _object.type == "rodsgroup":
uz_args = (f"{_object.name}",)
else:
uz_args = (f"{_object.name}#{_object.zone}",)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@d-w-moore Use # noqa: SIM106 to instruct ruff to not report this.

with self.assertRaises(UserDoesNotExist):
self.sess.users.get(self.new_user_name)

def test_deleting_remote_user_including_home_collection_and_trash_artifact__issue_763(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider renaming or adding a comment to capture the intent of the test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants